package com.diankangwo.dao.impl;

import cn.beecloud.bean.TransferData;
import com.diankangwo.dao.OrderRefundDAO;
import com.diankangwo.util.BeecloudPayUtil;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 订单退款操作实现类
 *
 * @author xiaoyu
 */
@Repository
public class OrderRefundDAOImpl implements OrderRefundDAO {

    private static final Logger LOG = Logger.getLogger(OrderRefundDAOImpl.class);

    private BeecloudPayUtil pay = new BeecloudPayUtil();

    @Override
    public String batchPayment(String batchNo, List<TransferData> list, String accountName) {
        try {
//			return pay.batchPayment(batchNo, list, accountName);
        } catch (Exception e) {
            LOG.debug("批量打款异常：" + e.getMessage());
            e.printStackTrace();
            return null;
        }
        return "";
    }

    @Override
    public String BCRefundParamter(String billNo, String refundNo, Integer refundFee, Map<String, Object> optional) {
        try {
//			return pay.BCRefundParamter(billNo, refundNo, refundFee, optional);
        } catch (Exception e) {
            LOG.debug("退款异常：" + e.getMessage());
            e.printStackTrace();
            return null;
        }
        return "";
    }

}
